<div id="right">

 <?php if ( !function_exists('dynamic_sidebar')
	|| !dynamic_sidebar(1) ) : ?>
		<?php endif; ?>

<div class="title"><h4>Комментарии</h4></div>
<div class="com">
 <ul><?php if(function_exists('get_recent_comments')) { get_recent_comments(); } ?></ul>
</div>  

<div class="title"><h4>RSS</h4></div>
<div class="blok">
<a href="<?php bloginfo('rss2_url'); ?>" title="Подпишись на RSS!" /><img style="float:left; margin:0 10px 0 0; padding:0; border:0;"  src="<?php bloginfo('template_directory'); ?>/images/rss.png"  alt="rss" /></a>
Подпишитесь на <a href="<?php bloginfo('rss2_url'); ?>">RSS</a> для получения обновлений. 

</div> 

<div class="title"><h4>Поиск</h4></div>
<div class="sblok">
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" value="Поиск" name="s" id="s" onfocus="if (this.value == 'Поиск') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Поиск';}" />
<input type="image" id="searchsubmit" value="Поиск" src="<?php bloginfo('stylesheet_directory'); ?>/images/search-button.png" />
 <div style="clear:both;"></div>
</form>
</div>

<div class="title"><h4>Рубрики</h4></div>
<div class="blok">
 <form action="<?php bloginfo('url'); ?>/" method="get">
<?php
 $select = wp_dropdown_categories('show_option_none=Выбрать рубрику&show_count=1&echo=0&orderby=name&depth=4&child_of=0&hierarchical=1');
 $select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
 echo $select;
?>
<noscript><input type="submit" value="View" /></noscript>
</form></div>

<div class="title"><h4>Архивы</h4></div>
<div class="blok">
<select name=\"archive-dropdown\" onChange='document.location.href=this.options[this.selectedIndex].value;' id="archive">
<option value=\"\"><?php echo attribute_escape('Выбрать месяц'); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
</div>


<div class="title"><h4>Метки</h4></div>
<div class="blok">
<select name="tag-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;" id="tag">	
<option value="#">Выбрать метку</option>
<?php dropdown_tag_cloud('number=0&order=asc'); ?>
</select></div>

<div class="title"><h4>Календарь</h4></div>
<div class="blok">
<?php get_calendar(true); ?>
</div>

</div>